package com.jnshu.controller;

import com.jnshu.service.FrontTaskService;
import com.jnshu.tools.resultUtils.ResultBean;
import lombok.extern.java.Log;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;


/**
 * @ClassName FrontTaskController
 * @Descrintion
 * @Author bd
 * @Date 2019/8/22 0:03
 * @Version 1.0
 **/
@Controller
@Log
public class FrontTaskController {
    @Autowired
    FrontTaskService frontTaskService;

    @GetMapping("/task/details")
    public ResultBean selectByStatus(Long taskId,Long userId){
        log.info("controller层celectByStaus方法的taskId值为" + taskId);
        return frontTaskService.selectByStatus(taskId,userId);
    }


}
